package py.com.alfa.escriba.web.services;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import py.com.alfa.escriba.exception.ServiceException;
import py.com.alfa.escriba.persistence.dto.VehiculosinfoDTO;
import py.com.alfa.escriba.web.interceptor.InvocationContext;

public interface VehiculosinfoService {
  List<VehiculosinfoDTO> listVehiculosinfo(InvocationContext ic) throws ServiceException;
  VehiculosinfoDTO getVehiculosinfo(Long id, InvocationContext ic) throws ServiceException;
  void deleteVehiculosinfo(Long id, InvocationContext ic) throws ServiceException;
  @Transactional(value="transactionManager", rollbackFor={ServiceException.class},propagation=Propagation.REQUIRED)
  VehiculosinfoDTO updateVehiculosinfo(Long id, VehiculosinfoDTO dto, InvocationContext ic) throws ServiceException;
  @Transactional(value="transactionManager", rollbackFor={ServiceException.class},propagation=Propagation.REQUIRED)
  VehiculosinfoDTO createVehiculosinfo(VehiculosinfoDTO dto, InvocationContext ic) throws ServiceException;
}